<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta charset="utf-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>0元全屋定制</title>
    <link rel="stylesheet" href="v2/css/main.css">
    <link rel="stylesheet" href="v2/css/style.css" >
</head>
<script type="text/javascript">
    //js控制web页面适配
    function html_size(doc, win) {
        var docEl = doc.documentElement,
            resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
            recalc = function () {
                var clientWidth = docEl.clientWidth;
                if (!clientWidth) return;
                if (clientWidth > 750) {
                    clientWidth = 750;
                }
                docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
                //window.alert(window.innerWidth);
            };
        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
        recalc();
    }

    html_size(document, window);
</script>
<body>
    <header>
        <img src="v2/img/title.jpg" alt="韩氏家居舒堡美居">
    </header>
    <div class="content">
        <div class="content_msg pr" id="form_msg">
            <div class="content_msg_title pa">仅剩<span class="pr">&nbsp;</span>个名额<p class="content_msg_num pa">99</p></div>
            <form action="" method="post" id="signForm">
                <div class="content_msg_name pr">
                    <input type="text" placeholder="请输入您的姓名" name="realName" id="realName">
                </div>
                <div class="content_msg_phone pr">
                    <input type="number" placeholder="请输入您的手机号码" name="phone" id="phone" maxlength="12">
                </div>
                <input type="hidden" name="fromSrc" id="fromSrc" value="0"/>
                <input type="button" class="content_msg_btn" id="signBtn">
            </form>
            <img src="v2/img/title-msg.jpg"  alt="定制家具搞定小户型烦恼">
        </div>
    </div>
    <img src="v2/img/title-2.jpg" alt="" class="content_tile_2">
    <img src="v2/img/content-bg-1.jpg"  alt="升级档次" style="margin-top: 4%;">
    <img src="v2/img/content-bg-2.jpg"  alt="整体全屋定制">
    <img src="v2/img/content-bg-3.jpg"  alt="定制衣柜">
    <img src="v2/img/content-bg-4.jpg"  alt="加大房间空间">
    <img src="v2/img/content-bg-5.jpg"  alt="定制上下床">
    <img src="v2/img/content-bg-6.jpg"  alt="多功能榻榻米">
    <img src="v2/img/content-bg-7.jpg"  alt="">
    <img src="v2/img/button-2.png"  alt="0元免费出3D效果图" class="content_btn_2">
    
    <script src="../js/jquery.js" ></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
	<script src="js/common.js"></script>
	<script>
        var num = 99;
        var timer = setInterval(function () {
            var Num = $('.content_msg_num').html(num);
            num--;
            if (num === 0) {
                num = 99;
            }
        }, 5000);
        
        $('.content_btn_2').click(function () {
            var top = $('#form_msg').offset().top;
            $('html, body').animate({ scrollTop: top }, 500);
            return false;
        });
        
        
        //微信分享
		var DESC = "0全屋定制！活动真实有效，完全免费参考，有需要的业主朋友可以继续报名";
	    var LINK = "http://www.ikazs.com/wx/v2.html";
	    
	    var _url = location.href.split('#').toString();//url不能写死
	    $.ajax({
	        type : "get",
	        url : "http://www.ikazs.com/halu-web/getJSsdkParam",
	        dataType : "json",
	        async : false,
	        data:{url: _url},
	        success : function(data) {
	            wx.config({
	                debug: false,////生产环境需要关闭debug模式
	                appId: data.appid,//appId通过微信服务号后台查看
	                timestamp: data.timestamp,//生成签名的时间戳
	                nonceStr: data.nonceStr,//生成签名的随机字符串
	                signature: data.signature,//签名
	                jsApiList: [//需要调用的JS接口列表
	                    'checkJsApi',//判断当前客户端版本是否支持指定JS接口
	                    'onMenuShareTimeline',//分享到朋友圈
	                    'onMenuShareAppMessage',//分享给好友
	                    'onMenuShareQQ',
	                    'onMenuShareWeibo'
	                ]
	            });
	        },
	        error: function(xhr, status, error) {
	            //alert(status);
	            //alert(xhr.responseText);
	        }
	    });
    </script>
</body>

</html>